| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

PopupYesNoDescriptor.h
1 // PopupYesNoDescriptor.h
3 //
5
6 namespace nkWinUi
7 {
11 struct PopupYesNoDescriptor final
12 {
13 nkMemory::String _message ;
14
15 std::function<void ()> _yesCallback ;
16 std::function<void ()> _noCallback ;
17
18 bool _closeOnOutsideClick = false ;
19 } ;
20 }
nkWinUi::PopupYesNoDescriptor::_yesCallback
std::function< void()> _yesCallback
The callback when the yes button is clicked.
Definition: PopupYesNoDescriptor.h:15
nkWinUi::PopupYesNoDescriptor::_message
nkMemory::String _message
The message to prompt.
Definition: PopupYesNoDescriptor.h:13
nkMemory::String
Class holding information about a string, with ownership over the data.
Definition: String.h:22
nkWinUi::PopupYesNoDescriptor::_closeOnOutsideClick
bool _closeOnOutsideClick
Whether a click outside the popup should cause it to close itself, cancelling the interaction.
Definition: PopupYesNoDescriptor.h:18
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7
nkWinUi::PopupYesNoDescriptor::_noCallback
std::function< void()> _noCallback
The callback when the no button is clicked.
Definition: PopupYesNoDescriptor.h:16
nkWinUi::PopupYesNoDescriptor
Describes the behaviour a yes / no popup should have.
Definition: PopupYesNoDescriptor.h:12